import Taro, { Component } from '@tarojs/taro'
import { Swiper, SwiperItem, Image, View, Text } from '@tarojs/components'
import '../../assets/common.scss'
import CommonJs from '../../utils/common'
import '../my/my.scss'



export default class Index extends Component {
  constructor(props) {
    super(props);
    this.state = {
      reslut: [],
      contentList:[]
    }
  } 
  config = {
    navigationBarTitleText:'用户协议与隐私政策'
  }

  componentWillMount () { 
      this.getdate()
  }
  componentDidShow () {
  	
  }
  componentDidUpdate () {
  }

  getdate(){
    var _this=this
    var url = "/other/getMessageByType" + "?type=3"
    var date = {

    }
    CommonJs.ajaxRequest(url,date,'GET',function(res){
        _this.setState({
            contentList: res.content
          })
    })
  }
 

  render () {
      const contentList = this.state.contentList;
 
    return (
    	<View className='page read-pagelist'>
        
    <RichText  className='read-list' nodes={this.state.contentList} />

	      

      </View>
    )
  }
}
